package com.min.star.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.min.star.mapper.SysteminfoMapper;
import com.min.star.mapper.TeacherMapper;
import com.min.star.model.Systeminfo;
import com.min.star.model.Teacher;
import com.min.star.service.ISysteminfoService;
import com.min.star.service.ITeacherService;

@Service
public class SysteminfoServiceImpl implements ISysteminfoService {

	@Autowired
	private SysteminfoMapper systemMapper;


	@Override
	public List<Systeminfo> selectSystemList() {
		return this.systemMapper.selectList(null);
	}


//	@Override
//	public System update(System system) {
//		int ret = this.systemMapper.updateById(system);
//		return this.systemMapper.selectById(system.getId());
//	}


	@Override
	public int editSystem(Object name, Object value) {
		return this.systemMapper.editSystem(name,value);
	}


	@Override
	public Systeminfo selectById(int id) {
		return this.systemMapper.selectById(id);
	}


}
